package oop5.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PrinterTest {
    public static void main(String[] args) {
        Printer p = new Printer();
        p.setBrand("佳能炫彩");
        p.setPrice(1499);
        p.setInk(new ColorFullInk("天威"));
        p.setPaper(new B5());
        p.print("hello world");
        System.out.println(">>>>>>>>换纸了>>>>>>>>>");
        p.setPaper(new A4());
        p.print("大扎好，我是渣渣灰");
        System.out.println("---------换墨水了----------");
        p.setInk(new BlackAndWhiteInk());
        p.print("大扎好，我是渣渣灰");
    }
}
